package com.xiaot.shopping.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaot.common.utils.PageUtils;
import com.xiaot.shopping.product.entity.AttrEntity;
import com.xiaot.shopping.product.vo.AttrGroupRelationVo;
import com.xiaot.shopping.product.vo.AttrRespVo;
import com.xiaot.shopping.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xiaoT
 * @email 
 * @date 2021-07-02 22:36:20
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getInfoById(Long attrId);

    void updateAttrById(AttrVo attr);

    List<AttrEntity> getRelationAttr(Integer attrGroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Integer attrGroupId);

    void saveAttrGroupRelation(AttrGroupRelationVo[] attrGroupRelationVos);
}

